package c_stream;

import java.io.*;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package c_stream
 * @date 2024/4/14 下午12:06
 */
public class Test {
    public static void main(String[] args) {
        try {
            OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream("module11\\1.txt", true), "utf-8");
outputStreamWriter.write("山河");
outputStreamWriter.close();

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
